package com.sth.wiki;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.core.env.ConfigurableEnvironment;

/**
 * @Author: sitianhong
 * @Description:
 * @Since: create in 2023/11/2 0002 15:08
 */
@Slf4j
@SpringBootApplication
@MapperScan(basePackages = "com.sth.*.mapper")
public class ZApp {

    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(ZApp.class);
        ConfigurableEnvironment evn = run.getEnvironment();
        log.info("启动成功!!!");
        log.info("地址: \thttp://127.0.0.1:{}", evn.getProperty("server.port"));
        log.info("knife4j配置信息 \thttp://127.0.0.1:{}/doc.html", evn.getProperty("server.port"));
    }
}
